
import { request } from '@/utils/request';

// POST 检查是否注册
export async function queryCheckPhoneAuth(data: any): Promise<responseData> {
  return request(`/plat/public/service/user/isregister`, {
    method: 'POST',
    data
  })
}

// POST 发送短信验证码
export async function queryPhoneCaptcha(data: any) {
  return request(`/plat/public/service/user/sendsms`, {
    method: 'POST',
    data
  });
}
// 登录
export async function queryUserLogin(data: any) {
  return request(`/plat/public/service/user/login`, {
    method: 'POST',
    data
  });
}

// 注册
export async function queryUserRegister(data: any) {
  return request(`/plat/public/service/user/register`, {
    method: 'POST',
    data
  });
}

// line登錄
export async function queryLineLogin(data: any) {
  return request(`/plat/public/service/user/line/login`, {
    method: 'POST',
    data
  });
}